package ink.tiptop.dto.req.remote.publish;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 服务远程视图(ZjfServiceRemoteView)请求查询类
 *
 * @author zjf
 * @since 2020-07-22 08:45:34
 */
@Getter
@Setter
public class ScanPublishRequest implements Serializable {
    private static final long serialVersionUID = 3154177268463371353L;
    /**
     * 关联用户账号
     */
    @JsonProperty("SCAN_USER")
    @NotBlank(message = "要扫描的服务器ID不能为空")
    private String user;
    /**
     * 关联用户版本
     */
    @JsonProperty("SCAN_VERSION")
    @NotBlank(message = "版本信息不能为空")
    private String version;
    /**
     * 本地扫描路径
     */
    @JsonProperty("SCAN_PATH_LOCAL")
    @NotBlank(message = "要扫描的路径不能为空")
//    @Pattern(regexp = "^(\\/.*)$"
//            ,message = "本地扫描路径用绝对路径")
    private String pathLocal;

}